package com.rzjm.exercise.common.exception;

import com.rzjm.exercise.common.enums.ResultEnum;

import lombok.Getter;

/**
 * Created by SqMax on 2018/3/18.
 */
@Getter
public class WechatException extends RuntimeException {
	private static final long serialVersionUID = 4128951025345870021L;
	
	private Integer code;

    public WechatException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }
    
    public WechatException(Integer code,String message){
        super(message);
        this.code=code;
    }
}
